using System;
using System.Collections.Generic;
using System.Text;
using WozLib.WozObjects;
using WOzTestUI.WozObjects;

namespace WOzTestUI
{
  public class StringToSpeak : AudioPrompt
  {

    public StringToSpeak(string textToSpeak) : base (textToSpeak)
    {
    }

    public override ServerObject GetServerObject()
    {
      return new StringToSpeakServerObject(this.ServerID);
    }

    public static IServerObject FromStringToSpeakServerObject(StringToSpeakServerObject stringToSpeakServerObject)
    {
      StringToSpeak sts = new StringToSpeak(stringToSpeakServerObject.Data);
      sts.ServerID = stringToSpeakServerObject.ServerID;
      ServerObjectRegistry.RegisterObjectWithExisitingId(sts);
      return sts;
    }
  }
}
